<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$model_name='模块';
$menu_name='channel';
$sub_meun_name='add';
$page_name="添加".$model_name;
//error_reporting(0); //抑制所有错误信息
?>

<?php require_once 'public/header.php';?>
<?php require_once 'public/sidebar.php';?>

<div id="content">
    <div id="content-header">
        <div id="breadcrumb"> <a href="<?php echo site_url($this->config->item('system_manage_path')."welcome");?>" title="系统首页" class="tip-bottom"><i class="icon-home"></i> 系统首页</a>
        <a href="<?php echo site_url($this->config->item('system_manage_path').$menu_name);?>" title="<?php echo $model_name;?>列表" class="tip-bottom"><?php echo $model_name;?>列表</a> <a class="current"><?php echo $model_name;?>管理</a>
        </div>
        <h1><a href="<?php echo site_url($this->config->item('system_manage_path').$menu_name);?>" title="<?php echo $model_name;?>列表" class="tip-bottom"><?php echo $model_name;?>列表</a> <a href="<?php echo site_url($this->config->item('system_manage_path').$menu_name."/add");?>" class="btn btn-primary btn-large fr"><i class="icon-plus icon-white"></i> 添加<?php echo $model_name;?></a></h1> 
    </div>
    
    <div class="container-fluid">
      <hr>
      <div class="row-fluid">
        <div class="widget-box">
          <div class="widget-title"> <span class="icon"> <i class="icon-plus"></i> </span>
            <h5>添加<?php echo $model_name;?></h5> 
          </div>  
          
          <div class="widget-content" style="padding-bottom:0px;">
            <form class="form-horizontal" method="post" action="<?php echo site_url($this->config->item('system_manage_path')."channel/save/add");?>" name="basic_validate" id="basic_validate" novalidate>
              <div class="control-group">
                <label class="control-label"><?php echo $model_name;?>名称：</label>
                <div class="controls">
                  <input type="text" name="name" id="name" value="" class="span4">
                </div>
              </div>
              <div class="control-group">
                <label class="control-label"><?php echo $model_name;?>简称：</label>
                <div class="controls">
                  <input type="text" name="sub_name" id="sub_name" value="" class="span4">
                </div>
              </div>
              <div class="control-group">
                <label class="control-label"><?php echo $model_name;?>英文：</label>
                <div class="controls">
                  <input type="text" name="en_name" id="en_name" value="" class="span4">
                </div>
              </div>
              <div class="control-group">
                <label class="control-label"><?php echo $model_name;?>描述：</label>
                <div class="controls">
                  <textarea id="content" name="content" class="ckeditor" rows="5"></textarea>
                </div>
              </div>
              <div class="control-group">
                <label class="control-label"><?php echo $model_name;?>排序：</label>
                <div class="controls">
                  <input type="text" name="sort" id="sort" value="<?php echo $show['sort']; ?>" class="span1"> 数字越大，排序越后
                </div>
              </div>
              <div class="form-actions">
                <input type="submit" value="确定" class="btn btn-success">
                <input type="button" value="取消" class="btn btn-danger" onClick="javascript: location.href='<?php echo $comeurl?>';"  />
                <input type="hidden" name="lcomeurl" value="<?php echo $comeurl?>" />
              </div>
            </form>
          </div>
          
        </div>
      </div>
    </div>
</div>

<?php require_once 'public/footer.php';?>